
package advice.around;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import common.HelloException;
import common.HelloInterface;

/**
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class InterceptorTester
{
	public InterceptorTester() throws HelloException
	{
		ApplicationContext context = new ClassPathXmlApplicationContext( "advice/around/interceptor.xml" );

		HelloInterface helloAdvice = ( HelloInterface )context.getBean( "helloProxy" );

		helloAdvice.sayHello( "eric.kao" );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		try
		{
			new InterceptorTester();
		}
		catch( HelloException e )
		{
			e.printStackTrace();
		}
	}

}
